package cn.ggcms.cms.biz;

import java.util.List;

import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.DetachedCriteria;

import cn.ggcms.cms.dao.PicturesDao;
import cn.ggcms.cms.vo.Messages;
import cn.ggcms.cms.vo.Pictures;

public class PicturesBiz implements PicturesDao {

	private PicturesDao picturesDao;

	public void setPicturesDao(PicturesDao picturesDao) {
		this.picturesDao = picturesDao;
	}

	public boolean doAddPictures(Pictures pictures) {
		return this.picturesDao.doAddPictures(pictures);
	}

	public boolean doDeletePictures(int id) {
		return this.picturesDao.doDeletePictures(id);
	}

	public boolean doUpdatePictures(Pictures pictures) {
		return this.picturesDao.doUpdatePictures(pictures);
	}

	public List<Pictures> findAllPictures() {
		return this.picturesDao.findAllPictures();
	}

	public Pictures findPicturesById(int id) {
		return this.picturesDao.findPicturesById(id);
	}

	public List<Pictures> findAllPicturesByCondition(DetachedCriteria criteria) {
		return findAllPicturesByCondition(criteria);
	}

	public List<Pictures> findAllPictures(String hql) {
		return this.picturesDao.findAllPictures(hql);
	}

	public List<Pictures> findPicturesByPage(String hql, int firstResult,
			int maxResults) {
		return this.picturesDao.findPicturesByPage(hql, firstResult, maxResults);
	}

	public int getSize() {	
		return this.picturesDao.getSize();
	}

	

}
